#include "employee.h"

using namespace rational;

Employee::Employee(int id, int compId, const Rational& salary)
	: _Id(id), _CompanyId(compId), _salary(salary)
{
}

int Employee::GetId() const
{
	return _Id;
}

int Employee::GetEmployer() const
{
	return _CompanyId;
}

void Employee::SetEmployer(int emp)
{
	_CompanyId = emp;
}

Rational Employee::GetSalary() const
{
	return _salary;
}

void Employee::SetSalary(const Rational &salary)
{
	_salary = salary;
}
